﻿@using Smart.Project.Data
@model MProjectinfo
@{
    Layout = null;
}
<link href="~/Content/css/styles.css" rel="stylesheet" />
<link href="~/Content/css/styles-blue.css" rel="stylesheet" />
<link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/css/new-styles.css" rel="stylesheet" />

<script src="~/Content/js/vendors/jquery/jquery.min.js"></script>
<script src="~/Content/js/vendors/bootstrap/bootstrap.min.js"></script>
<script src="~/Content/js/vendors/form/jquery.form.min.js"></script>
<script src="~/Content/js/vendors/form/jquery.validate.min.js"></script>
<script src="~/Content/js/vendors/slimScroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("#STATUS").val('@Model.STATUS');
        //初始化laydate插件
        layui.use(["layer", "laydate"], function () {
            var laydate = layui.laydate;
            laydate.render({
                trigger: 'click', //采用click弹出
                elem: '#BEGINTIME',   //项目开始日期
                format: 'yyyyMMdd'
            });
            laydate.render({
                elem: '#ENDTIME',   //结束日期
                trigger: 'click' //采用click弹出
                , format: 'yyyyMMdd'
            });
            laydate.render({
                elem: '#SIGNTIME',           //签订日期
                position: "fixed",
                trigger: 'click' //采用click弹出
                , format: 'yyyyMMdd'
            });
        })
        $("#slimScroll").slimScroll({
            height: "600px",
        });


    });
</script>
<div class="powerwidget" data-widget-editbutton="false" style="margin-bottom:0px">
    <div class="inner-spacer">
        <div id="slimScroll">
            @using (Html.BeginForm("Create", "Projectinfo", FormMethod.Post, new { @class = "form-horizontal", @id = "mainForm", @style = "margin-bottom:0px" }))
            {
            <fieldset>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">类别</label>
                    <div class="col-md-10">
                        @Html.HiddenFor(item => item.Id)
                        <select id="CATEGORY" name="CATEGORY" class="form-control" disabled="disabled">
                            <option value="1" selected="selected">承包</option>
                            <option value="0">分包</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目名称</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.NAME, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目地址</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.ADDRESS, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目开始时间</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.BEGINTIME, new { @class = "form-control required", @id = "BEGINTIME", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目结束时间</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.ENDTIME, new { @class = "form-control required", @id = "ENDTIME", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目类型编码</label>
                    <div class="col-md-10">
                        <select id="CATEGORY" name="CATEGORY" class="form-control" disabled="disabled">
                            <option value="1" selected="selected">在建项目</option>
                            <option value="0">虚拟项目</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">合同额</label>
                    <div class="col-md-9">
                        @Html.TextBoxFor(item => item.MONEY, new { @class = "form-control digits", @readonly = "readonly" })
                    </div>
                    <label class="col-md-1 control-label" for="textinput" style="text-align:left">万</label>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目经理</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.PARTYA, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目经理联系电话</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.PARTYB, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">阶段</label>
                    <div class="col-md-10">
                        <select id="STATUS" name="STATUS" class="form-control" disabled="disabled">
                            <option value="1" selected="selected">前期</option>
                            <option value="2">建设期</option>
                            <option value="3">运维期</option>
                            <option value="4">结束</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">合同编号</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.PARTYAPERSON, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">项目甲方信息</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.JFINFO, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">甲方负责人电话</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.PARTYAPHONE, new { @class = "form-control required", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">条形码</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.BARCODE, new { @class = "form-control ", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">签订时间</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.SIGNTIME, new { @class = "form-control required", @id = "SIGNTIME", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">描述</label>
                    <div class="col-md-10">
                        @Html.TextBoxFor(item => item.DESCRIBE, new { @class = "form-control ", @readonly = "readonly" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-md-2 control-label" for="textinput">是否有效</label>
                    <div class="col-md-10">
                        <select id="ISVALID" name="ISVALID" class="form-control" disabled="disabled">
                            <option value="1" selected="selected">有效</option>
                            <option value="0">无效</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-12" style="text-align:center">
                        <button id="btnSave" type="button" class="btn btn-info">保存</button>
                    </div>
                </div>
                <div class="form-group" style="display:none">
                    @*<div class="col-md-8">
                @Html.TextBoxFor(item => item.TAG.Id, new { @class = "form-control", @id = "TAGID", @readonly = "readonly" })
            </div>*@
                </div>
            </fieldset>
            }
        </div>
    </div>
</div>


